package com.sgb.kjwl.model.entity.home;

import android.text.TextUtils;

import com.sgb.kjwl.utils.NumberUtil;

/**
 * Describe:
 * Author:  yangLei
 * Date:    2021/8/16
 */
public class MapSourceEntity {
    private String allFreight;
    private long arrivalTime;
    private String carLenName;
    private String carLenNo;
    private String carTypeName;
    private String carTypeNo;
    private String cityName;
    private String cityNo;
    private String companyName;
    private String companyNo;
    private String teamNo;
    private String contrcts;
    private String contrctsImAccount;
    private String contrctsNumber;
    private String destCityName;
    private String destCityNo;
    private String destDetailAddress;
    private String destDistrictName;
    private String destDistrictNo;
    private String destProvinceName;
    private String destProvinceNo;
    private String detailAddress;
    private String distance;
    private String districtName;
    private String districtNo;
    private Integer endPointTime;
    private long endTime;
    private String freight;
    private String freightType;
    private String freightUnit;//运费单位 1：元/趟，2：元/吨，3：元/方
    private String goodsModeName;
    private String goodsTypeName;
    private String secondGoodsTypeName;
    private String goodsModeNo;
    private String handleTypeName;
    private String handleTypeNo;
    private String heightHurdle;
    private String imAccount;
    private String imToken;
    private String invoice;
    private String isDump;
    private String isManage;
    private double latitude;
    private String loadRequire;//装车要求
    private double longitude;
    private String messagePrice;
    private String no;//货源no
    private String note;
    private String packingTypeName;
    private String packingTypeNo;
    private String pattern;//货源发布模式：0普通     1竞价
    private String payType;
    private String performanceBond;//履约保证金
    private String provinceName;
    private String provinceNo;
    private String qualification;
    private String sendGoodsUnit;
    private String sendPeople;
    private String sendPhone;
    private long shipmentEndTime;
    private long shipmentTime;
    private Integer startPointTime;
    private String state;
    private String status;
    private String transportType;//运输要求：0零担     1整车
    private String unloadRequire;//卸车要求：
    private String userNo;
    private String username;
    private String volume;
    private String weight;
    private String terminal;//1：企业发布 / 2：团队发布 / 3：个人发布
    private String offerType;//1：企业 2：团队 3：个人（司机）————多资格逗号分隔

    private String connection;//联系人
    private String connectionPhone;//联系电话

    public String getConnection() {
        return connection;
    }

    public void setConnection(String connection) {
        this.connection = connection;
    }

    public String getConnectionPhone() {
        return connectionPhone;
    }

    public void setConnectionPhone(String connectionPhone) {
        this.connectionPhone = connectionPhone;
    }
    public String getOfferType() {
        if (TextUtils.isEmpty(offerType)) {
            return "";
        }
        String type = "";
        if (offerType.contains("1")) {
            type += "企业/";
        }
        if (offerType.contains("2")) {
            type += "团队/";
        }
        if (offerType.contains("3")) {
            type += "个人(司机)/";
        }
        if (TextUtils.isEmpty(type)) {
            return "";
        } else {
            return type.substring(0, type.length() - 1);
        }
    }

    public void setOfferType(String offerType) {
        this.offerType = offerType;
    }

    public String getTerminal() {
        if (TextUtils.isEmpty(terminal)){
            return "0";
        }
        return terminal;
    }

    public void setTerminal(String terminal) {
        this.terminal = terminal;
    }

    public String getAllFreight() {
        return allFreight;
    }

    public void setAllFreight(String allFreight) {
        this.allFreight = allFreight;
    }

    public long getArrivalTime() {
        return arrivalTime;
    }

    public void setArrivalTime(long arrivalTime) {
        this.arrivalTime = arrivalTime;
    }

    public String getCarLenName() {
        return carLenName;
    }

    public void setCarLenName(String carLenName) {
        this.carLenName = carLenName;
    }

    public String getCarLenNo() {
        return carLenNo;
    }

    public void setCarLenNo(String carLenNo) {
        this.carLenNo = carLenNo;
    }

    public String getCarTypeName() {
        return carTypeName;
    }

    public void setCarTypeName(String carTypeName) {
        this.carTypeName = carTypeName;
    }

    public String getCarTypeNo() {
        return carTypeNo;
    }

    public void setCarTypeNo(String carTypeNo) {
        this.carTypeNo = carTypeNo;
    }

    public String getCityName() {
        return cityName;
    }

    public void setCityName(String cityName) {
        this.cityName = cityName;
    }

    public String getCityNo() {
        return cityNo;
    }

    public void setCityNo(String cityNo) {
        this.cityNo = cityNo;
    }

    public String getCompanyName() {
        return companyName;
    }

    public void setCompanyName(String companyName) {
        this.companyName = companyName;
    }

    public String getCompanyNo() {
        return companyNo;
    }

    public void setCompanyNo(String companyNo) {
        this.companyNo = companyNo;
    }

    public String getContrcts() {
        return contrcts;
    }

    public void setContrcts(String contrcts) {
        this.contrcts = contrcts;
    }

    public String getContrctsImAccount() {
        return contrctsImAccount;
    }

    public void setContrctsImAccount(String contrctsImAccount) {
        this.contrctsImAccount = contrctsImAccount;
    }

    public String getContrctsNumber() {
        return contrctsNumber;
    }

    public void setContrctsNumber(String contrctsNumber) {
        this.contrctsNumber = contrctsNumber;
    }

    public String getDestCityName() {
        return destCityName;
    }

    public void setDestCityName(String destCityName) {
        this.destCityName = destCityName;
    }

    public String getDestCityNo() {
        return destCityNo;
    }

    public void setDestCityNo(String destCityNo) {
        this.destCityNo = destCityNo;
    }

    public String getDestDetailAddress() {
        return destDetailAddress;
    }

    public void setDestDetailAddress(String destDetailAddress) {
        this.destDetailAddress = destDetailAddress;
    }

    public String getDestDistrictName() {
        return destDistrictName;
    }

    public void setDestDistrictName(String destDistrictName) {
        this.destDistrictName = destDistrictName;
    }

    public String getDestDistrictNo() {
        return destDistrictNo;
    }

    public void setDestDistrictNo(String destDistrictNo) {
        this.destDistrictNo = destDistrictNo;
    }

    public String getDestProvinceName() {
        return destProvinceName;
    }

    public void setDestProvinceName(String destProvinceName) {
        this.destProvinceName = destProvinceName;
    }

    public String getDestProvinceNo() {
        return destProvinceNo;
    }

    public void setDestProvinceNo(String destProvinceNo) {
        this.destProvinceNo = destProvinceNo;
    }

    public String getDetailAddress() {
        return detailAddress;
    }

    public void setDetailAddress(String detailAddress) {
        this.detailAddress = detailAddress;
    }

    public String getDistance() {
        return distance;
    }

    public void setDistance(String distance) {
        this.distance = distance;
    }

    public String getDistrictName() {
        return districtName;
    }

    public void setDistrictName(String districtName) {
        this.districtName = districtName;
    }

    public String getDistrictNo() {
        return districtNo;
    }

    public void setDistrictNo(String districtNo) {
        this.districtNo = districtNo;
    }

    public Integer getEndPointTime() {
        return endPointTime;
    }

    public void setEndPointTime(Integer endPointTime) {
        this.endPointTime = endPointTime;
    }

    public long getEndTime() {
        return endTime;
    }

    public void setEndTime(long endTime) {
        this.endTime = endTime;
    }

    public String getFreight() {
        return freight;
    }

    public void setFreight(String freight) {
        this.freight = freight;
    }

    public String getFreightType() {
        return freightType;
    }

    public void setFreightType(String freightType) {
        this.freightType = freightType;
    }

    public String getFreightUnit() {
        if (TextUtils.isEmpty(freightUnit))
            return "元/吨";

        String str;
        switch (freightUnit) {
            case "1":
                str = "元/趟";
                break;
            case "3":
                str = "元/方";
                break;
            default:
                str = "元/吨";
        }
        return str;
    }

    public void setFreightUnit(String freightUnit) {
        this.freightUnit = freightUnit;
    }

    public String getGoodsModeName() {
        return goodsModeName;
    }

    public void setGoodsModeName(String goodsModeName) {
        this.goodsModeName = goodsModeName;
    }

    public String getSecondGoodsTypeName() {
        return secondGoodsTypeName;
    }

    public void setSecondGoodsTypeName(String secondGoodsTypeName) {
        this.secondGoodsTypeName = secondGoodsTypeName;
    }

    public String getGoodsLastTypeName() {
        String name = "";
        if (!TextUtils.isEmpty(secondGoodsTypeName)) {
            name = secondGoodsTypeName;
        } else if (!TextUtils.isEmpty(goodsTypeName)) {
            name = goodsTypeName;
        }
        return name;
    }

    public String getGoodsTypeName() {
        return goodsTypeName;
    }

    public void setGoodsTypeName(String goodsTypeName) {
        this.goodsTypeName = goodsTypeName;
    }

    public String getGoodsModeNo() {
        return goodsModeNo;
    }

    public void setGoodsModeNo(String goodsModeNo) {
        this.goodsModeNo = goodsModeNo;
    }

    public String getHandleTypeName() {
        return handleTypeName;
    }

    public void setHandleTypeName(String handleTypeName) {
        this.handleTypeName = handleTypeName;
    }

    public String getHandleTypeNo() {
        return handleTypeNo;
    }

    public void setHandleTypeNo(String handleTypeNo) {
        this.handleTypeNo = handleTypeNo;
    }

    public String getHeightHurdle() {
        return heightHurdle;
    }

    public void setHeightHurdle(String heightHurdle) {
        this.heightHurdle = heightHurdle;
    }

    public String getImAccount() {
        return imAccount;
    }

    public void setImAccount(String imAccount) {
        this.imAccount = imAccount;
    }

    public String getImToken() {
        return imToken;
    }

    public void setImToken(String imToken) {
        this.imToken = imToken;
    }

    public String getInvoice() {
        return invoice;
    }

    public void setInvoice(String invoice) {
        this.invoice = invoice;
    }

    public String getIsDump() {
        if (TextUtils.isEmpty(isDump)) {
            return "";
        }
        if ("1".equals(isDump)) {
            return "自卸";
        } else if ("0".equals(isDump)) {
            return "非自卸";
        }
        return isDump;
    }

    public void setIsDump(String isDump) {
        this.isDump = isDump;
    }

    public String getIsManage() {
        return isManage;
    }

    public void setIsManage(String isManage) {
        this.isManage = isManage;
    }

    public double getLatitude() {
        return latitude;
    }

    public void setLatitude(double latitude) {
        this.latitude = latitude;
    }

    public String getLoadRequire() {
        return loadRequire;
    }

    public void setLoadRequire(String loadRequire) {
        this.loadRequire = loadRequire;
    }

    public double getLongitude() {
        return longitude;
    }

    public void setLongitude(double longitude) {
        this.longitude = longitude;
    }

    public String getMessagePrice() {
        return messagePrice;
    }

    public void setMessagePrice(String messagePrice) {
        this.messagePrice = messagePrice;
    }

    public String getNo() {
        return no;
    }

    public void setNo(String no) {
        this.no = no;
    }

    public String getNote() {
        return note;
    }

    public void setNote(String note) {
        this.note = note;
    }

    public String getPackingTypeName() {
        return packingTypeName;
    }

    public void setPackingTypeName(String packingTypeName) {
        this.packingTypeName = packingTypeName;
    }

    public String getPackingTypeNo() {
        return packingTypeNo;
    }

    public void setPackingTypeNo(String packingTypeNo) {
        this.packingTypeNo = packingTypeNo;
    }

    public String getPattern() {
        if (TextUtils.isEmpty(pattern))
            return "0";
        return pattern;
    }

    public void setPattern(String pattern) {
        this.pattern = pattern;
    }

    public String getPayType() {
        return payType;
    }

    public void setPayType(String payType) {
        this.payType = payType;
    }

    public String getPerformanceBond() {
        return performanceBond;
    }

    public void setPerformanceBond(String performanceBond) {
        this.performanceBond = performanceBond;
    }

    public String getProvinceName() {
        return provinceName;
    }

    public void setProvinceName(String provinceName) {
        this.provinceName = provinceName;
    }

    public String getProvinceNo() {
        return provinceNo;
    }

    public void setProvinceNo(String provinceNo) {
        this.provinceNo = provinceNo;
    }

    public String getQualification() {
        return qualification;
    }

    public void setQualification(String qualification) {
        this.qualification = qualification;
    }

    public String getSendGoodsUnit() {
        return sendGoodsUnit;
    }

    public void setSendGoodsUnit(String sendGoodsUnit) {
        this.sendGoodsUnit = sendGoodsUnit;
    }

    public String getSendPeople() {
        return sendPeople;
    }

    public void setSendPeople(String sendPeople) {
        this.sendPeople = sendPeople;
    }

    public String getSendPhone() {
        return sendPhone;
    }

    public void setSendPhone(String sendPhone) {
        this.sendPhone = sendPhone;
    }

    public long getShipmentEndTime() {
        return shipmentEndTime;
    }

    public void setShipmentEndTime(long shipmentEndTime) {
        this.shipmentEndTime = shipmentEndTime;
    }

    public long getShipmentTime() {
        return shipmentTime;
    }

    public void setShipmentTime(long shipmentTime) {
        this.shipmentTime = shipmentTime;
    }

    public Integer getStartPointTime() {
        return startPointTime;
    }

    public void setStartPointTime(Integer startPointTime) {
        this.startPointTime = startPointTime;
    }

    public String getState() {
        if (TextUtils.isEmpty(state))
            return "";
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }

    public String getStatus() {
        if (TextUtils.isEmpty(status))
            return "";
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getTransportType() {
        return transportType;
    }

    public void setTransportType(String transportType) {
        this.transportType = transportType;
    }

    public String getUnloadRequire() {
        return unloadRequire;
    }

    public void setUnloadRequire(String unloadRequire) {
        this.unloadRequire = unloadRequire;
    }

    public String getUserNo() {
        return userNo;
    }

    public void setUserNo(String userNo) {
        this.userNo = userNo;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getVolume() {
        return volume;
    }

    public void setVolume(String volume) {
        this.volume = volume;
    }

    public String getTeamNo() {
        return teamNo;
    }

    public void setTeamNo(String teamNo) {
        this.teamNo = teamNo;
    }

    public String getWeight() {
        if (TextUtils.isEmpty(weight)) {
            return "";
        } else {
            return NumberUtil.trim0(weight) + "吨";
        }

    }

    public void setWeight(String weight) {
        this.weight = weight;
    }
}
